package com.gwsdk.open;

import com.gwsdk.paysdk.bean.GWPayModel;
import com.gwsdk.paysdk.callback.WFTWapPayCallback;
import com.gwsdk.paysdk.callback.ZFBWapPayCallback;

public class ApiCallback {

    public static WFTWapPayCallback mWFTWapPayCallback;

    public static ZFBWapPayCallback mZFBWapPayCallback;


    public static IGPExitObsv getExitObsv() {
        return GWApi.getApi().getExitObsv();
    }

    public static OrderInfo order() {
        return GWPayModel.Instance().order();
    }

    public static IGPUserObsv getLoginCallback() {
        return GWApi.getApi().getLoginCallback();
    }

    /**
     * 微信wap支付结果回调
     *
     * @param wftWapPayCallback
     */
    public static void setWFTWapPayCallback(WFTWapPayCallback wftWapPayCallback) {
        if (null != wftWapPayCallback) {
            mWFTWapPayCallback = wftWapPayCallback;
        }
    }

    /**
     * 支付宝wap支付结果回调
     *
     * @param zfbWapPayCallback
     */
    public static void setZFBWapPayCallback(ZFBWapPayCallback zfbWapPayCallback) {
        if (null != zfbWapPayCallback) {
            mZFBWapPayCallback = zfbWapPayCallback;
        }
    }

}
